home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / misc1 / iv26_w30.zip / INTERVIE / X11 / WORLDREP.H < prev   
C/C++ Source or Header  |  1992-03-10  |  1KB  |  56 lines

  1. /*
  2.  *  MS - dependent World representation.
  3.  */
  4.  
  5. #ifndef worldrep_h
  6. #define worldrep_h
  7.  
  8. #include <windows.h>
  9. #include <InterViews\defs.h>
  10.  
  11. class InteractorTable;
  12. class WorldRep;
  13.  
  14. extern WorldRep* _world;
  15. extern int    saved_argc;
  16. extern char** saved_argv;
  17.  
  18. const int PALETTE_SIZE = 12;
  19. const int TIMER_ENTERLEAVE = 16;
  20.  
  21. extern class WorldView* _worldview;
  22.  
  23. class WorldRep {
  24. public:
  25.     WorldRep();
  26.     ~WorldRep();      // delete Palette
  27.  
  28.     HANDLE           hinstance();
  29.     HANDLE           hprevinstance();
  30.     char*           hostname();
  31.     HWND             root();
  32.     WORD             max_palette_entry();
  33.     InteractorTable*  itable();
  34.     HDC               hdc();
  35.  
  36.     int               XBorder;
  37.     int               YBorder;
  38.     int               YCaption;
  39.     HWND              hTimerWindow;
  40.  
  41. private:
  42.     friend class World;
  43.  
  44.     HANDLE    _hinstance;
  45.     HANDLE    _hprevinstance;
  46.     char      _host[10];
  47.     HWND      _root;
  48.     HPALETTE  _cmap;
  49.     WORD      _max_palette_entry;
  50.     HDC       _hDC;
  51.     InteractorTable* _itable;
  52. };
  53.  
  54. #endif
  55.  
  56.